/********************************************************
 Name          : usart_fast.h
 Author        : Khachatur Gyozalyan
 Copyright     : Copyright by Antel Systems
 Description   :
 **********************************************************/

#ifndef USART_FAST_H_
#define USART_FAST_H_

#include "usart.h"
#include "gpio.h"
#include "usart.h"
#include "FreeRTOS.h"
#include "task.h"
#include "string.h"
#include "clocks.h"


#define PIN_DCD             8
#define PIN_DTR             7
#define PIN_DSR             4
#define PIN_CTS             19
#define PIN_RTS             10


#define USART_BUFFER_SIZE   (1024 * 4)
#define USART_BUFFER_AFULL  100

extern usart_options_t USART1_OPTIONS;

void usart_fast_init(void);
void usart_release_rts(void);
void usart_set_parameters(void);
void usart_print_char(char letter);
unsigned int usart_get_data(unsigned char *data,unsigned int size);
void usart_put_data(unsigned char * data,unsigned int size);
void usart_output(void);
int usart_count(void);
void print_uart_info(void);

void dis_rts_pin(void);
void usart_rx_en(void);

extern unsigned char Mode_Ready;

#endif /* USART_FAST_H_ */
